package com.sina.shop.manage.dao.business;

import com.sina.shop.core.BaseDao;
import com.sina.shop.domain.Groom;
import com.sina.shop.domain.business.Business;

import java.util.List;
import java.util.Map;

/**
 * Created with IntelliJ IDEA.
 * Description:
 * 段浩杰   2018-01-04-15:21
 */
public interface BusinessManageDao extends BaseDao {

    Business getBusinessByName(String name);

    int deleteBusiness(Long id);

    int deleteBusinessTab(Long id);

    List<Map<String, Object>> getBusinessList(Business business);

    List<Map<String, Object>> getBusinessIdAndNameList();

    Long getBusinessCount(Business business);

    int updateBusinessGroom(Long id, Groom isGroom);
}
